func MongoInit() {
	ctx, cancel = context.WithTimeout(context.Background(), 10*time.Second)
	mongoClient, err := mongo.Connect(ctx, options.Client().ApplyURI("mongodb://root:rootpassword@mongo:27017"))
	if err != nil {
		log.Printf("Could not connect the Mongo client: err = %s", err)
	}
	mongoDB = mongoClient.Database("go-test-bench")
	collection = mongoDB.Collection("colors")
	opts := options.InsertMany().SetOrdered(false)
	docs := []interface{}{
		bson.D{{Key: "name", Value: "Alice"}},
		bson.D{{Key: "name", Value: "Bob"}},
	}
	_, _ = collection.InsertMany(context.TODO(), docs, opts)
}
MongoInit creates a connection to MongoDB and instantiates
the data in the database
package nosql
import (
	"context"
	"fmt"
	"html/template"
	"log"
	"net/http"
	"strings"
	"time"
	"github.com/Contrast-Security-OSS/go-test-bench/utils"
	bson "go.mongodb.org/mongo-driver/bson"
	mongo "go.mongodb.org/mongo-driver/mongo"
	options "go.mongodb.org/mongo-driver/mongo/options"
)
var mongoClient *mongo.Client
var mongoDB *mongo.Database
var collection *mongo.Collection
var ctx context.Context
var cancel context.CancelFunc