Add data migration 0.7 -> 0.8

Close #809. Fix #746