Postgresql Function Insert Into Table Returning Amazon