Spatialite database building