change: add function to update diagram based on DB data