Index: /trunk/glueforge/templates/psdb/alloc_h.tt
===================================================================
--- /trunk/glueforge/templates/psdb/alloc_h.tt	(revision 3927)
+++ /trunk/glueforge/templates/psdb/alloc_h.tt	(revision 3928)
@@ -7,6 +7,11 @@
 
 [% object_name %] *[% object_name %]Alloc(
+[%- SET i = 0 -%]
 [% FOREACH item = columns -%]
-    [% indented("$item.ctype", "$item.name") %];
+[% IF i == 0 %][% i = 1 %][% ELSE %],[% END %]
+    [% indented("$item.ctype", "$item.name") %]
+[% i = i + 1 -%]
 [% END -%]
 );
+
+
Index: /trunk/glueforge/templates/psdb/droptable_h.tt
===================================================================
--- /trunk/glueforge/templates/psdb/droptable_h.tt	(revision 3927)
+++ /trunk/glueforge/templates/psdb/droptable_h.tt	(revision 3928)
@@ -5,4 +5,4 @@
 
 bool [% namespace %]DropTable(
-    psDB *dbh,                          ///< Database handle
+    psDB *dbh                           ///< Database handle
 );
Index: /trunk/glueforge/templates/psdb/selectrowsfits_h.tt
===================================================================
--- /trunk/glueforge/templates/psdb/selectrowsfits_h.tt	(revision 3927)
+++ /trunk/glueforge/templates/psdb/selectrowsfits_h.tt	(revision 3928)
@@ -11,5 +11,5 @@
 bool [% namespace %]SelectRowsFits(
     psDB            *dbh,               ///< Database handle
-    psFits          *fits               ///< psFits object
+    psFits          *fits,              ///< psFits object
     psMetadata      *where,             ///< Row match criteria
     const psU64     limit               ///< Maximum number of elements to return
