public UserRecord getUserRecord(String username) throws SQLException {
    Connection databaseConnection = database.getConnection();
    Statement statement = databaseConnection.createStatement();
    String query = String.format(GET_USER_RECORD, username);
    statement.executeQuery(query);
    ResultSet result = statement.getResultSet();
    if (result.next()) {
      String password = result.getString(1);
      String name = result.getString(2);
      return new UserRecord(username, password, name);
    }
    return null;
  }