Bugfix: add_minute_for_each_prediction

It didn't do the final transaction.commit(), meaning the last 600 rows were
not processed on the database.

Also add an assertion to check that this *actually* works now.