CC-5651: Unit Test the Scheduler

* Got the database connection working in our unit test