Fixes for codegen

Fixing some codegen problems related to the FormGen database comment.

Clarifying some notes.