consolidate sqlite updates into large single ones for performance reasons