only write to db if data is new