flask with mysql - has error