Command line/sqlite code

Code to generate database and paper history .csv file