Modifies createDocs.py so it can be used with the new database schema; however, I don't think it is needed for importing the data into R anymore.
adds some SQLs