switched to raw_query to avoid AdvancedQuery bug in MongoEngine library