Simplify. Instead of procs, use tb + ".insert" for tb in tbs.