fixed the remove method of the object to actually do a remove query