All instances of this particular check/error need to be changed from 
`res.json( 500, "database..." );`

to

`res.json( 500, { error: "database..." } );`