Procedures to migrate database from version 1.x to 2.x