Change "destination" and "databse" to "target" in the log command.
Change "destination" and "databse" to "target" in the status command.
Add `target` to engine.

And use it in `destination` when it makes sense. Also, replace
`core.$engine.database` with `core.$engine.target`, and rename
`reg_destination` to `registry_destination.'