You seem like the one trying to prove something, but are just ignoring facts, and rejecting to use common sense. Think what CIP wanted to achieve when writing this code. Read the decompiled code for yourself and see how the server interacts with the database through the QM.
Game server sets what it sets, and loads what the website sets, and vice versa. Obviously it can't be the way around. The difference between these things you now listed is that they're not stored anywhere in the game server files, but the names are.
I said that before your post, when you claimed the database was just for showoff and that characters could exist without the db. Technically? yes, the file is there in the folder, so you can say it exists. But the player won't be loaded nor are you able to interact with it anyhow (e.g. by sending a parcel). That's the common sense here and my point. Besides none of that has anything to do with the issue that guy had. The lack of a character in database wouldn't result in cleaning the house. Reporting its evicit - yes, but the OP would have to first tell his querymanager that the character was deleted. Why would he do that? I mean he could remove it accidentaly, but the 'default' querymanager posted around in otland to my remembering didn't have checkings for such case, correct me if I'm wrong, but it only worked for when you set an account ban-deletion.
I just read the posts back and noticed I made it ambiguous about removing the owner at first, if that's what you're questioning. Game server doesn't remove it from the file and will still try to set it in the database, but ingame it displays as 'nobody own this house' and the items are left inside. That's what I meant. In the same time you made it ambiguous too, about character "not existing in the database". Reporting its evicit was what you meant I believe, which doesn't equal non-existence, unless you made a code for that. Hence I assumed you meant not loading the player. In case of reporting an evicit for any reason, it cleans the house, true. In case of a character not being loaded (but not reported for evicit), it doesn't clean the house, also true. So I'll just assume it was a both-sides misunderstanding and hope it gets cleaner now.
E: I just checked the qm in the most recent tutorial, and it indeed checks for when the account id is null and the account id is used as a player id there. But there was some other, way more reliable, qm around with working accounts where it only checked for bans though.
Either way, I'm pretty sure the issue
@brunoofgod had was about not closing the server properly in order to save the map.