Add domain to Mongo query, produce JSON output