public void updateSchedule(Schedule schedule)
	{
		PreparedStatement ps;
		try {
			if(schedule.getId() > 0)
			{
				ps = con.prepareStatement("UPDATE schedule SET name=?, week_day=? WHERE id=?");
				ps.setInt(3, schedule.getId());
			}
			else
			{
				ps = con.prepareStatement("INSERT INTO schedule (name, week_day) VALUES (?, ?)");
			}
			ps.setString(1, schedule.getName());
			ps.setString(2, schedule.getWeekDay());
			ps.executeUpdate();
			ps.close();
			
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}