Add queries to iias db