Generate Mongo queries from querystring parameters