Added the main portion of the build python script and ensured all the primary keys have the unique constraint.