Refactored db migration #2.