Use better map format to store maps history.
added data migration code