persist diagnosis to db