Updated database to index at get view like CouchDB does.