DB/Misc: Some fixes required to complete Gong scripting.