added database response code