add mysql checking and leader election
Add more status