Much simplified schema, added views for files, folders, and symlinks.  Error checking on addGlobal