Fix DB API

no ref
- Use correct error type
That resulted in a "undefined is not a function" when you have a syntax error in your JSON file.