Added assert for value saved to the db