Better error when db is missing

Change-Id: Ia5352105faf63a0d244e0906367c17d318ca9eec
Merge branch 'hotfix/tests'