Added script for migration of data.

References #665