Postgres Check If Date Is Null Postgresql Create User And Database