Added exception handling of addUser()

 * this was needed to be able to automatically stress test the database.
   when there is 20000 users in the db and you try to add one, the
   method throws an exception. we can check that it has been thrown in
   our test, as opposed to manually confirming that the JOptionPane is
   indeed shown.