fixed another db connection problem