move database connection info to config file