refactor function name in c# port; update mapdb