Because `db, err :=` would declare local variable `db`, and we need it global.