Fixed spatialite table insert bugs