cleanup resources after DELETE request. Fix roster sql query