Now working for spatialite