Index: trunk/glueforge/templates/psdb/insert.tt
===================================================================
--- trunk/glueforge/templates/psdb/insert.tt	(revision 3581)
+++ trunk/glueforge/templates/psdb/insert.tt	(revision 3865)
@@ -1,3 +1,3 @@
-bool [% table_name %]Insert(psDB * dbh,
+bool [% namespace %]Insert(psDB * dbh,
     [%- SET i = 0 -%]
     [%- FOREACH item = columns -%]
@@ -22,5 +22,5 @@
         [%- i = i + 1 %]
     [%- END %]
-    status = psDBInsertOneRow(dbh, "[% table_name %]", row);
+    status = psDBInsertOneRow(dbh, "[% namespace FILTER upper %]_TABLE_NAME", row);
     psFree(row);
 
