Fix db table def in map model
Adapted migrations