wrapper functions for PDO transactions