Drop in wrapper for mysql_functions using pdo