You can find all these changes in this commit.
There are some errors introduced by moving openDatabase
to utils.ts
class as these should be server side methods.
Note the creation of the new database.ts
in this commit, and then the changes to the imports where used
in app/lib/utils.ts
Add to the top of the file.