Refactor the scheduler's backend to use swh.core.db.BaseDb
so it uses a proper connection pool to access the database.