Refreshed all templates from database.