Derive collectionName of base schema.
Cleanup and bugfixes for schema base stuff