put db info into config file