Make Smarty search template in database first

If not, fallback to file template
Add disable_template_override variable to Smarty

To disable Database Template Overriding and use original files