Core: remove redundant query
Core: only store the parameters for update query
Core: improve variable names
Core: remove no longer used database values
Links: adapt to new core API
Core: allow registering history action handlers
Organism: handle own history actions
Links: handle own history actions