Connect to db

Use a factory to get the correct database connection to support multiple backends. Test db connection in status.
Move holidays out of controller

Hard code data in repostory for now
Create schedules model

Add conversion of string to enum for category parameter.