Add database interaction functionality to EditSRActivity