Moved the database things to a seperate config.