- store connected status in _connected field and provide method connected() in db module
- remove internal connected status for db connection and use db class status instead
- before dumping items check if db connectivity is present and
  try to reconnect if required
- fix current item dump in finalize dump