[web] improve error handling when setting/getting userID
Summary:
- Making errors more descriptive
- When we cannot not get userID we should delete database
Test Plan:
- Throw errors from setting/getting userID and check if errors are printed.
- Throw error from getting and make sure database is deleted
Reviewers: tomek, michal
Reviewed By: tomek
Subscribers: ashoat
Differential Revision: https://phab.comm.dev/D10305