[OE-3301] bugfixes for when running against mysql with auto increment offsets