public static void main(String [] args) {
		try {
			ImportDao importDao = new ImportDao();
			importDao.connect();
			Dao.getInstance();
			Connection conn = Dao.getConnection();
			
			ArrayList<Activity> estudios = importDao.getEstudios();
			ActivityDao activityDao = ActivityDao.getInstance();
			
			System.out.println("Estudios");
			for(Activity a : estudios) {
				System.out.println(a.toString());
				activityDao.insertActivity(conn, a);
			}
			ArrayList<Activity> activities = activityDao.getActivities(conn);
			
			ArrayList<Time> tiempos = importDao.getTiempos(activities);
			TimeDao timeDao = TimeDao.getInstance();
			System.out.println("Tiempos");
			for(Time t : tiempos) {
				System.out.println(t.toString());
				timeDao.insertTime(conn, t);
			}
			System.out.println("Data import ended.");
		} catch (ClassNotFoundException ex) {
			log.error("Unable to load the database driver.\nError message: {}", ex.getLocalizedMessage());
		} catch (SQLException ex) {
			String [] errors = {ex.getLocalizedMessage(), String.valueOf(ex.getErrorCode()), ex.getSQLState()};
			log.error("Error while accessing the database.\nError message: {}\nError code: {}\nSQLState: {}", 
					errors);
		}
	}