updated dbConnect