PostgreSQL DB Migration Fix for UAA

Correctly handle PostgreSQL DB schema migration.
https://www.pivotaltracker.com/story/show/67714674