Jkinnard

Hey guys, the db now works entirely as we want it to. It does do a lot of disk writes, so I might optimize it a bit in the future if time permits. Duplicate entries will not be added and new flags in files will be added appropriately. Alex let me know if you're still have trouble iterating presented entries with db.retrieve() and we can investigate.