Refactor DB configuration out of the code and into a config file