private void makeConnection(mode operationMode) throws SQLException
   {
      try
      {

         // Load all the drivers and initialise the database connection
         Class.forName("org.postgresql.Driver");

         // Check on the operation mode
         System.out.println(getVersionString() + " and " + forced);
         if (getVersionString().contains("SNAPSHOT") || forced)
            operationMode = mode.DEVELOPMENT;
         else
            operationMode = mode.PRODUCTION;

         if (operationMode == mode.PRODUCTION)
            locDB = DriverManager.getConnection("jdbc:postgresql://192.168.1.100/music?user=music");
         else
         {
            System.err.println("Connection to development database");
            locDB = DriverManager
                  .getConnection("jdbc:postgresql://localhost/musicdev?user=musicdev");
         }

         // Switch off auto commit
         locDB.setAutoCommit(false);
      }
      catch (ClassNotFoundException e)
      {
         throw new SQLException(e);
      }
   }