Database set scaffolding for contexts

- Added database set scaffolding for real and tests contexts.