Refactored project, added flask-script, preliminary models