adding more resiliancy to DBHandle

#441