moved database config into config file