switch form input to db
generalize simple dicts in db
store/restore db
restore history display
check for stale data