completed refactor of link and user to use mongo.