Functional offline mode

Still need to update database with file changes
Merge branch 'master' of https://github.com/hanlonal/CSE4982013