Updated add.py and scan.py for PostgreSQL seeding, data updating