fixing a db config bug.