added scripts, implemented flask-user, fixed models