Postgres Check If Value Is In Dictionary