AttributeError: 'str' object has no attribute 'fetch'

Somewhere in your code, I’m guessing that you have a line like this:

db = 'path/to/my/database.db'

You need to change it to

db = Database(‘path/to/my/database.db’)

But you really should post the full traceback of the error.