solve possible db connection problem