public boolean isConnected() {
		try {
			return (connection != null) && !connection.isClosed();
		} catch (SQLException e) {
			log.log(Level.WARNING, "DatabaseConnection: Connection check failed: "+e.getMessage(), e );
			return false;
		}
	}