Fixing database settings