Refactor updatedb.py

Refactored updatedb.py to handle the Platform XRef better.
Added a dictionary for the mappings and cleaned out the hacky
logic in parseBuilder function