@@ -0,0 +1,1833 @@
+package eic.beike.projectx.network.projectXServer;%0A%0Aimport android.util.Log;%0Aimport com.google.gson.Gson;%0Aimport eic.beike.projectx.network.RetrieveReader;%0Aimport eic.beike.projectx.util.Constants;%0Aimport eic.beike.projectx.util.ScoreEntry;%0A%0Aimport java.io.BufferedReader;%0A%0A/**%0A * Used to interact with our database.%0A * Created by alex on 10/1/15.%0A */%0Apublic class Database implements IDatabase %7B%0A%0A    /**%0A     * Register a name for the given id.%0A     *%0A     * @return True if registration succeded, false if it failed.%0A     */%0A    @Override%0A    public boolean register(String id, String name) %7B%0A        BufferedReader in = RetrieveReader.get(%0A                Constants.SERVER_URL+%22Register.php?id=%22+ id + %22&name=%22 + name%0A        );%0A        if (in != null) %7B%0A            Gson gson = new Gson();%0A            InsertResponse response = gson.fromJson(in, InsertResponse.class);%0A            Log.d(this.getClass().getSimpleName(),%22Got answer from server, message:%22 + response.getMessage());%0A            return (response.getSuccess() == 1);%0A        %7D%0A        Log.w(this.getClass().getSimpleName(),%22Failed to contact the database.%22);%0A        return false;%0A    %7D%0A%0A    /**%0A     * @param playerId The id, not the name, of the player%0A     * @param bus%0A     * @return True if score was recorded correctly, false if it failed.%0A     */%0A    @Override%0A    public boolean recordScore(String playerId, int score, long time, String bus) %7B%0A        return false;%0A    %7D%0A%0A    /**%0A     * @return The best ten scores for all players on all buses.%0A     */%0A    @Override%0A    public ScoreEntry%5B%5D getTopTen() %7B%0A        return new ScoreEntry%5B0%5D;%0A    %7D%0A%0A    /**%0A     * @param playerId%0A     * @return The best ten scores for the given player.%0A     */%0A    @Override%0A    public ScoreEntry%5B%5D getPlayerTopTen(String playerId) %7B%0A        return new ScoreEntry%5B0%5D;%0A    %7D%0A%7D%0A

Add database implementation of register method.