Postgresql Check Database Exists Definition