add Mysql heartbeat logic.

Change-Id: I150449ab8479b1ea7ef9020400e09a13b8ffd345
Signed-off-by: Henry Chen <hchen@vmware.com>