added database update and scheduler to flask-script