Added Shema name for custom functions ( fix an error: is not a recognized built-in function name)
Updated templates.