Fixed a bug where an int return value from the db was send as the res statuscode instead of a value

Fixes the bug I mentioned in #13