Reset Local Data for different Sales Rep logins

**index.controller.js**:

- Modify login();
- Move webOps.database.tables.login.save() into save() sub-method of
login()
- Add new deferred webOps.database.tables.login.select(userId)
- Compare Login userId against previous Login userId
- If userIds don't match, call
webOps.database.commands.clearDatabase(userId, true)
- Run save() on $.done else Run save()

**webops.database.js**:

- Update webOps.database.tables.login().select()
- Update deferred.resolve() to include a .length check
Reset Local Data for different Sales Rep logins

**index.controller.js**:

- Modify login();
- Move webOps.database.tables.login.save() into save() sub-method of
login()
- Add new deferred webOps.database.tables.login.select(userId)
- Compare Login userId against previous Login userId
- If userIds don't match, call
webOps.database.commands.clearDatabase(userId, true)
- Run save() on $.done else Run save()

**webops.database.js**:

- Update webOps.database.tables.login().select()
- Update deferred.resolve() to include a .length check