Updating JDBC and exceptions