Fix database setting