db.connect now accepts params