Generate template id in Db if not set
Do not generate field id in DbField