Added ability to export search query results in diff form to mongo