fixed query string error and added delete function for assignments