Remove logging of response latency.
Send database error messages as code 500.