Added update function to mongo driver
Added conditional calls to support non-relational db drivers