Fixing db config