Perform the drop queries in a procedure to check for existance