migrations and reformat search data in html