Revert "It only makes sense to look at added lines, of course"

This reverts commit e96228e6865ea473821b89d5c4d425c99b950ed9.
Fix line counting
Refactor
Initial work on writing information to the database