persist data to DB