implement MySQL failover
indentation