Fixed db.connect