More fixes to the collection creation, also add lateststamp and latestid to mastercollection table