Old-style MySQL functions implemented via PDO