fix database settings