public void sql_add_appointment() throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException
	{
		Class.forName("com.mysql.jdbc.Driver").newInstance();
		Statement s = GUI.con.createStatement();
		//CHANGE FUNCTION BASED ON HIERARCHY
		if(GUI.Level == 1)
		{
			s.executeUpdate ("INSERT INTO appointments VALUES(default," + "\'" + group_input.getText() + "\'" + "," + "\'" + start_hour_input.getText() + ":" + start_minute_input.getText() + ":00\'" + "," + "\'" + end_hour_input.getText() + ":" + end_minute_input.getText() + ":00\'" + "," + "\'" + year_input.getText() + "-" + month_input.getText() + "-" + day_input.getText() + "\'" + "," + "\'" + location_input.getText() + "\'" + "," + "\'" + description_input.getText() + "\'" + "," + "\'" + title_input.getText() + "\'"+");");
		}
		else if(GUI.Level == 2)
		{
			s.executeUpdate ("INSERT INTO appointments VALUES(default," + "\'" + GUI.ugn + "\'" + "," + "\'" + start_hour_input.getText() + ":" + start_minute_input.getText() + ":00\'" + "," + "\'" + end_hour_input.getText() + ":" + end_minute_input.getText() + ":00\'" + "," + "\'" + year_input.getText() + "-" + month_input.getText() + "-" + day_input.getText() + "\'" + "," + "\'" + location_input.getText() + "\'" + "," + "\'" + description_input.getText() + "\'" + "," + "\'" + title_input.getText() + "\'"+");");
		}
		s.close();
	}