Added a SQLException to searchForPopular in controller