public static void main(String [] args) {		
        
		try {
			showMainScreen();
			db.getConnection();
		} catch (SQLException sql) {
			log.log(Level.SEVERE,"A SQL exception occurred. This can happen if there's two versions of the application running. Error was : " + sql.getMessage(),sql);
			Run.showErrorDialog(mainScreen.getSelfRef(), "A SQL exception occurred. This can happen if there's two versions of the application running.");
			System.exit(1);
			// This happens more than you think when developing
		} catch (Exception e) {
			log.log(Level.SEVERE,"An exception occurred that was not properly handled : " + e.getMessage(),e);
			Run.showErrorDialog(mainScreen.getSelfRef(), "Error: " + e);
			System.exit(1);
		} finally {
			db.close();
		}
		
		// How to delete
		// I can get the files that will be deleted marked with a flag
		// When I can go through and either actually delete them or just move them (until I'm sure it works)
	}