load template from DB