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