This attempts to insert a temporary entry into each enum table until it succeeds. It re-synchronizes the postgres sequence generators with the max id of the table. Fixes #883 and #880
Conflicts: data/migrations/versions/82297d834ad_add_us_west_location.py test/data/test.db