remove old db.connect usage