moving database configuration back to app