Fix the upgrade migration of custom profile fields in #2545

The upgrade_2-1_postgresql.sql changes are untested, but do match the changes to upgrade_2-1_mysql.sql that are tested and confirmed to fix the upgrade issues in #2545.

Signed-off-by: Noteworthy Software, Inc <online@noteworthysoftware.com>
This needs to be $genderTypes = array(1 => 'Male', 2 => 'Female');, we don't use double quotes for simple strings and have space between the assignment operator