public void addUserToDB() {
		try {
			String statement = new String("INSERT INTO " + DBTable 
					+ " (username, password, url, permission, isblocked, isdead, practicenumber, highscorenumber)" 
					+ " VALUES (?, ?, ?, ?, ?, ?, ?, ?)");
			PreparedStatement stmt = DBConnection.con.prepareStatement(statement, new String[] {"userid"});
			stmt.setString(1, username);
			stmt.setString(2, password);
			stmt.setString(3, homepageURL);
			stmt.setInt(4, permission);
			stmt.setBoolean(5, isBlocked);
			stmt.setBoolean(6, isDead);
			stmt.setInt(7, practiceNumber);
			stmt.setInt(8, highScoreNumber);			
			stmt.executeUpdate();
			ResultSet rs = stmt.getGeneratedKeys();
			rs.next();
			userID = rs.getInt("GENERATED_KEY");
			rs.close();
		} catch (SQLException e) {
			e.printStackTrace();
		}		
	}