added remote method for storing and deleting data