Made MapDB code to run again.