Moving sqlite code to MBXMapViewTileOverlay