changed query methods to return boolean