sqlite code to read MBTiles metadata