update mapdb; some fixes