Buddy & group data structure refactor.

QyncDb doesn't have to handle the data structure anymore.