move db to config