def setup_database(): db.connect() try: db.create_tables([User, Module]) except peewee.OperationalError as e: print(e)