add sample function to restore text into DB