moved database connection setting to config