Added paper revisions so far

Also started the rewrite of the DB section with the new DB stuff