Fixed Model.prototype.replace
Optimized Query.prototype.update, replace & remove
Added test cases for Query