public Player insert(String pseudo, String password) {
		try {
			PreparedStatement statement = base
			        .prepareStatement("INSERT INTO player (pseudo, password ,meilleur_score) VALUES (?, ?, ?)");
			statement.setString(1, pseudo);
			statement.setString(2, password);
			statement.setInt(3, 0);
			statement.execute();
			statement.close();
			statement = base
			        .prepareStatement("SELECT id FROM player WHERE pseudo = ?");
			statement.setString(1, pseudo);
			ResultSet resultSet = statement.executeQuery();
			resultSet.next();

			return new Player(resultSet.getInt(1), pseudo, password, 0);
		}
		catch (SQLException e) {
			if (e.getSQLState().equals("23000")) {
				throw new DuplicatedPlayerException(e);
			}
			else {
				throw new RuntimeException(e);
			}
		}
	}