Fixing database config