Introduce concept of declared groups to db entities.