Fixing more SQL errors.  Updated to Postgres on local machine