Improved support for local Mbtiles and Spatialite