Fixing patchDB to clean smarty's compiled templates. Clearing all wasn't working, so now only clear templates