I am able to generate the line types for page 604 with a query like so  I can cross-reference the sura_number by joining the glyph_ayah table like so:  However, the above only works for "ayah" line types because the glyph_ids for sura and bismillah types are not in glyph_ayah table. Did I miss something? like a glyph_sura and glyph_bismillah table :) or is this info you never needed in this image generating project. Any pointers would be helpful. Thank you.