add new function on mysql_repl_check script