Initial implementaiton (not working yet) for mbtiles support