adds spaced interval database, refactors deckview