adapt internal db structure to AddNodes requests

Still broken. Do not accept but please review changes