fixed LONG calc, and added a start at a Spatialite/SQLite table def.