Postgres Check If Date Is Null Postgresql Create User If Not Exists