added queryDelete and refactored RNQuery