mysqlqry minor uncommitted updates and rewrite to use PDO