public static void insertOrder() {
		Connection c = null;
	    Statement stmt = null;
        DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
        Date date = new Date();
        
	    try {
	        Class.forName("org.sqlite.JDBC");
	        c = DriverManager.getConnection("jdbc:sqlite:database/OrdSystem.db");
	        stmt = c.createStatement();
	        stmt.execute("INSERT INTO dailyorders (id, orderdate, totalordercost) VALUES (null, '" + dateFormat.format(date) + "', " + Order.cost + ");" );
	    }
	    catch ( Exception e ) {
	        System.err.println( e.getClass().getName() + ": " + e.getMessage() );
	        System.exit(0);
	    }
	}