Update Db.class.php

Add support for transaction method