minor fixes for genbeans.lua & update mapdb