Common utilities for MySQL