swh-web: enforce the database file to be created in either $HOME or /tmp
but NOT in the swh-web python package.
Needed to be able to run swh-web installed from source in a docker in which the code runs as swh user.
Migrated from D1391 (view on Phabricator)