Added mysql replication support