1. Fixed checking for connection availability in DbHelper.openDbConnection ()
2. Minor changes