sample tansaction class using PDO library