public static User getUserByUsername(String username) {
		username = username.trim();
		try {
			String statement = new String("SELECT * FROM " + DBTable + " WHERE username = ?");
			PreparedStatement stmt = DBConnection.con.prepareStatement(statement);
			stmt.setString(1, username);
			ResultSet rs = stmt.executeQuery();
			User user = null;
			if (rs.next()) {
				user = new User(rs.getInt("userid"), rs.getString("username"), rs.getString("password"), rs.getString("url"), 
						rs.getInt("permission"), rs.getBoolean("isblocked"), rs.getBoolean("isdead"), 
						rs.getInt("practicenumber"), rs.getInt("highscorenumber"));
			}
			rs.close();
			return user;
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return null;
	}