Added script to set up DB. Retrieval script now logs progress and saves repository & license data to a postgres database.