Fixed error with insert cgi.
It was printing the query result which is unneeded and broke the response protocol.
Added check if no row is selected.
It now alerts saying to select a row and doesn't attempt to delete anything.