set sql_fragment [db_map sql_fraq ""]
And then put the part of the sql into either the generic XQL file or the database specific ones.