New database structure

- Bridge collection between versions and repos.