Logging response from db