Add support for "append", using DB.put DB_APPEND flag.

Remove unused #include files.
Add support routines to get/set the data-source key/value pair
so we do it consistently.