added templates in database