Fixed exception in DB.php