log errors we send back
return the right status code
better error handling
abort on DB errors