changed query methods to return strings instead of boolean