How to use maps with mbtiles (sqlite) file?

I want to achieve ability to show maps offline. I have mbtiles (sqlite) file with the tiles but I didn’t find a way to use those tiles besides extracting the tiles from mbtiles into the file system and then use LocalTile. Is there some plugin or can I build a plugin that reads from the mbtiles database and returns tiles on demand like LocalTile does with file system?