private void insertScore(int week, User user, int score) {
		PreparedStatement statement = null;
        Connection connection = null;
        try {
            try {
                connection = data.getConnection();
                statement = connection.prepareStatement("INSERT INTO UserQuiz VALUES(?, ?, ?)");
                statement.setString(1, user.getUsername());
                statement.setInt(2, week);
                statement.setInt(3, score);
                statement.executeUpdate();
            }
            finally {
            	if(statement != null) {
            		statement.close();
            	}
            	if(connection != null) {
            		connection.close();
            	}
            }
        }
        catch (SQLException ex) {
        	System.out.println("Error updating score");
        	ex.printStackTrace();
        }
	}