Fixed issue #2895. each db has own immutable copy of schema classes