Workaround for next_id issue

Issue is that MoSQL will go across table boundaries into the next_id
table