Fixing default wordpress database template.
Fixing error when template folder is missing