saving last read details to db