Clean up style and reserved word issues.
Add  sqlite database class to App module. Add db instance to the App class, and update FileMap to use it.