Fix database settings