Don't doCreate if there are no records to create
Also don't setVal with 0, as this is invalid
Fix issue with sequences on custom table / column names