Add database fallback for Template.find