move database config into a separate file