Added migration logic from DB v1.1 to v1.2