sharing db between stacks