DB sets inheritance

- Made DB sets inheritance for contexts deriving main context.