Tagged release v3.1.1

f491913 fix(db): add InvalidId error handler
258f886 fix(response): add json_dump logig before sending response