Fixed Parse functionality

query now works