We can't help you with Iomad queries here. This forum is just for standard Moodle. You'd be better raising an Issue on Iomad's Github page. They're usually pretty helpful.
Installing and upgrading help
Upgrading our Moodle site with Iomad using the same database
Гэтае абмеркаваньне было заблакавана, таму вы болей ня можаце адказваць на яго.