fix database setting