fixed db inherits so it becomes shareable