Update Postgres deleteQuery

I found a bug in the query when trying to delete some tables where the primaryKey wasn't found or isn't specified. No primary key technically is necessary for this function to operate, so I removed the need for it.