move image persistance to common.js. move insert or select thing returning id into plpgsql function and loop as per https://dba.stackexchange.com/a/213625/ all that's left to do is variant identifier and menu_item and test. seems there are new ocs inconsistencies to fix too...

Created by  kevin  on March 17, 2020
ZBUC3VBT42SDAG42OCUX7MTT6GNPX2GEGWU2QIUYAY4NMX33IGLAC
Change contents