fixing db config