add inTransaction to PDO caster