minor fixes and update mapdb