Use `bulkCreate` to speed up inserts; bugfixes

This leads to a dramatic decrease in CPU usage.