/// <summary>
 /// Method called each time you wanna get something from the database
 /// </summary>
 /// <returns></returns>
 internal static Database getDatabase()
 {
     if (database == null)
     {
         database = new Database();
         return database;
     }
     else
         return database;
 }
 /// <summary>
 /// This method is purely for loading in the data about the machines and products
 /// </summary>
 /// <param name="p"></param>
 /// <param name="pro"></param>
 /// <returns></returns>
 internal static Database getDatabase2(List<domain.Machine> p, List<domain.Product> pro)
 {
     if (database == null)
     {
         database = new Database();
         database.machines = p;
         database.productList = pro;
         return database;
     }
     else
         return database;
 }