Fixing db configuration