fix db connections and unknown user