split MapDb to it's own file