Solution 1:

Bedrock edition uses a format know as leveldb. It was made by Google, although mojang maintains their own version for the game:

https://minecraft.gamepedia.com/Bedrock_Edition_level_format

Player inventories are stored with the ldb files (the db folder essentially consists of one database). Each player inventory is stored under the key "player_ID" where id is the integer id of the player. There is also a special key "~local_player" which represents the local player's inventory (game host or realm owner). This inventory takes precedence over any remote inventory for the same player. This would be the inventory you'd need to either edit out or transfer using a level editor such as Mctool chest or universal minecraft editor.