Postgres Function To Insert Into Table Query In Excel