Remove slashes from post variables

- Remove wordpress-added escape slashes to POST variables, as they were
causing data to be inserted into the database with slashes
- Modified two delete queries to use parameters to make them safer