I\'m getting a weird error and have no idea how to handle that. Seems like something changes between db.session.add and db.session.commit. But not sure
db.session.add
db.session.commit