Removed update method and renamed select to query