Cycle generated bid
Do not depend on pgsql sequence for unique ids