Also, move User, PackedUser, Group, PackedGroup to better-fit places.
Also move DB and Corpus to their own files while doing that.