from mjhea0/flask-boilerplate