Add migration script for Templates