refactor(database): removed unnecessary/redundant code

A bit of housekeeping... After reviewing my previous [PR](https://github.com/hoodiehq/hoodie-plugins-api/pull/40) I realised we do not need to initialise `ddoc.views[name]` as an empty object in `db.addIndex()` as we assign directly to it and not its members.

cc/ @svnlto