Preparing the MongoDB database for the data

We prepare the database as follows:
  1. Start the database server and give it the path to where we want to store our data.
  2. Starting the mongo shell.
  3. Creating the database.
  4. Creating a collection called events and inserting a dummy record into it.
  5. Create an index on fields "Time","SourceUser", "SourceComputer", "TargetComputer".  We create those indexes to make conditional and range querying very efficient because we will perform many of those.