changed to not use the mysqlreplicate.