added query and update methods in FailureTypes and Idnetyty repos.