Update Db.class.php

Allow our app to handle exceptions