Changed factory to instance. Fix delete method. Added update method. Fix search method