Create index for MongoDB
Log debug message to file (testing only)
Use MongoDB expression to filter entities on id, tx and validity