Postgres Function To Insert Into Table Postgresql