display query results for mongodb