Postgres Sequence Restart Based On The Values