Add index on mongo documents

Add index on mongo documents to increase performance.