As suggested by others, you would need to notify viewmodel if your model (database) updates.
Would you recommend a method to keep refreshing the window to show the update?
A simple solution could be to have Updated
event in your model (which gets/sets database), and then your viewmodel will attach a handler to this event. On recieving any update, ViewModel would re-initialize itself which will get reflected in UI.
If your design doesn't support updating model when database is updated. Then it is bigger design quesion really. For instance, how database is updated? are you using any ORM?...