Local SQLite

I started on Cesium, i was to able to do some tutorials.
I loaded images from à local image file whith this code as i could see in the tutorials :

Var viewer = new Cesium.Viewer('container',{
url: './ArchiveTile/osm/{z}/{x}/{y}.png

But now i want to make the link between a SQLite database (filled with tiles) and Cesium.
I do not see how to do it concretely, Can you help me?
Thanx to you

Try using a UrlTemplateImageryProvider to fetch the imagery.