Revised sample data generation

The data is now inserted in one database transaction. Closes #34