add template bean for database refresh