Do not depend on pgsql sequence for unique ids
Do not depend on pgsql sequence for unique ids