Many minor bugfixes + small sample data

This should boot, create all our major constraints and load the sample
data for testing the sale transaction. (Which I'm working on.)