cleanup + autorecovery of db connections