Fixed issue with shared DbNames from generic base types.

All tests pass.