public Map<String, Integer> getGroups(Connection con) {
		/* Compose query. */
		String SQL_QUERY= "SELECT user_group_id, title "
				+ "FROM xf_user_group;";
		/* Execute query. */
		try {
			Statement stmt = con.createStatement();
			ResultSet rs = stmt.executeQuery(SQL_QUERY);
			/* Create map of groups and their id's and return. */
			Map<String, Integer> group_id_map = new HashMap<String, Integer>();
			while (rs.next()) {
				group_id_map.put(rs.getString("title"), 
						rs.getInt("user_group_id"));
			}
			return group_id_map;
		} catch (SQLException e) {
			e.printStackTrace();
			
		}
		return null;
	}