Some utilities for mysql binlog