Fixed session compatibility with replica set.
Implemented collection type for organization.