Change to use the correct DB in errormessage
Merge pull request #1 from Velociraptor85/patch-1

Change to use the correct DB in errormessage