major updates - using mongo db as resource store