private void openBooksDatabase() throws SQLException {
		try {
			Context initialContext = new InitialContext();
			Context envContext =
					(Context) initialContext.lookup("java:comp/env");
			DataSource dataSource =
					(DataSource) envContext.lookup("library/books");
			booksConnection = dataSource.getConnection();
		} catch (NamingException e) {
			e.printStackTrace();
		}
	}