Implemented user login and saving to db for Flask :-) Not yet tested for file upload, but should work for both menu and inspect.