Made rakefile to delete invalid data