Refactored openDatabase

Now just sets request success event to callback and requires the
callback to get the db object from event.target (or this if binding is
not an issue). This avoids an unnecessary wrapper function.
Added filter-existing-entries.js
Added augment-entry-content.js
Prepare to use filterExistingEntries

Several comments.