Postgres Set Sequence Postgresql Create Function