fixes database settings