Adds entry for db
Adds PEP8 fixes
Updates git ignore file to include generate db
Includes general tidying up and minor corrections