tweak model, specify oursql as default mysql dialect
flake8 fixes