db_manager: replace toPyObject() (old sip api; fixes #9991)