move db config out of db file