using PHP PDO Lib connect MySQL database to do transaction