Separating main database from changelog table. Closes #1.