* fix wrong DB connection checking