Add rewrite
Remove old paper impl
Merge branch 'great-papers_db-refactor'