adds a few new methods to DB.php