fixed issue with how the $or op was being used to query mongodb