Refactor database configuration out to config.yml file