add support for mongo queries to alert-query