Use increment generator instead of identity

Thanks to that we can delay interacting with database (id is provided by
NH, not db).