PDO-like wrapper for ext/mysql