templates
Revert "templates"

This reverts commit 21f0090bddca232403b866f6ad802f4a8d6952eb.
db failure robustness