Issue #3337513 by mondrake, gidarai, VladimirAus, daffie, catch, andypost, smustgrave, rkoller, alexpott: Fix batch process race conditions by making ‘bid (batch id)’ auto-increment