public User getUserData(String username) throws SQLException {
    UserRecord user = getUserRecord(username);
    if (user != null) {
      Connection databaseConnection = database.getConnection();
      Statement statement = databaseConnection.createStatement();
      String query = String.format(GET_USER_FRIENDS, username);
      statement.executeQuery(query);

      ResultSet results = statement.getResultSet();
      TreeMap<String, Friend> listOfFriends = new TreeMap<String, Friend>();
      String friendUsername, friendName;
      while (results.next()) {
        friendUsername = results.getString(1);
        friendName = results.getString(2);
        listOfFriends.put(friendUsername, new Friend(friendName, friendUsername));
      }
      return new User(username, user.getName(), listOfFriends);
    }

    return null;
  }