Now can insert in empty tables while incrementing nicely, other small bugs fixed