Minor updates to DB access code

Added some preliminary functionality to grade access, and made the
DB access classes not exit when errors occur with the JDBC driver or
the connection to the SQL server.