Started over again, this time using SQLalchemy

Got a syntaxerror in line 89, but don't see the problem