updates dependencies and clean up mongoid code