That will be heavy lifting, I guess.
The simplest DB structure Locus can use is sqliteDB, as you find in the Locus "maps" folder is: x, y, z (zoom level) and a BLOB with the tile image, all in one table.
In your DB x, y, z are in the "Tile" table, while the image BLOB seems to be the one in the "TileData" table, with tileId being the linking reference.
You could first check if the BLOBs in your DB are 256 x 256 or 512 x 512 sized images that are in png or jpg format.
If that is true, you need to do database scripting to export your DB image blob data into a tree structure (by zoom levels) and x as the next level of folders, with the images as <y>.png/.jpg
Once you have that you can use MOBAC to compile a sqliteDB that Locus can use.
The simplest DB structure Locus can use is sqliteDB, as you find in the Locus "maps" folder is: x, y, z (zoom level) and a BLOB with the tile image, all in one table.
In your DB x, y, z are in the "Tile" table, while the image BLOB seems to be the one in the "TileData" table, with tileId being the linking reference.
You could first check if the BLOBs in your DB are 256 x 256 or 512 x 512 sized images that are in png or jpg format.
If that is true, you need to do database scripting to export your DB image blob data into a tree structure (by zoom levels) and x as the next level of folders, with the images as <y>.png/.jpg
Once you have that you can use MOBAC to compile a sqliteDB that Locus can use.