app/db: add some of the basic datastructs.