Added reconnection logic to db class