fix database slave