Do not depend on pgsql sequence for unique ids