Added setup_sql line to makefile
Fixing bugs in db schema file
Run against an URL in the run makefile target
Refactoring out some functions etc.