Protect dbflush and more graph types

The poller sometimes crashes because the DBSession.flush fails due to
deadlock. We don't really need the flush to always succeed and the
occasional failure will be ok.

Added BGP, Brocade and APC graph types.