DB.class.php update method