Fixed issue regarding updating failure status in Db

Added requestId check before updating the request status