DB_IsPlayer is the database of all the current player characters, not all the potential player characters.
In other words, characters should only be in DB_IsPlayer as long as they are recruited by someone.
So, your companions Ivar and Gunn aren't recruited because adding them to the database manually makes Osiris behave as though they'd already been recruited by someone.