fixing database settings