Updated ManagerDb and added api for GroupDb (wip).