[web] make database errors more descriptive
Summary: This is improvement to: ENG-5910.
Test Plan: Cause error and check if it's logged with details.
Reviewers: tomek, michal
Reviewed By: tomek
Subscribers: ashoat
Differential Revision: https://phab.comm.dev/D10191