Log errors from JDBCStatement

This also modifies the level that errors are logged in RestResponseBuilder for consistency.