Partial changes for local smtp error. Migration for last seen at default value
 Migration for inventory deleted flag added. Delete inventory code modified
 Delete and edit inventory cases handled