add db.Open() to example code