[z1873] Add support for db scripts assigned to gossip menus

(based on commit ef966c8)
(based on commit 02ead33)

(cleaned version of 99e57bc)

(based on commit [s1441] - 59ad249)