Integration With NextJS

The Mongodb with Nextjs Blog is not in sync with the started code that is given . For example there is no directory with the name util and it has been changed to lib . Added to connectToDb is not a method thart is being exported form lib/mongodb .

Which is making it hard to follow along