Import code from mammutdb.