Improve MBTiles interoperability with GDAL and QGIS

Add support for minzoom and maxzoom metadata items which GDAL and QGIS expect.