fix DB connection