Add PostgreSQL support

Add PostgreSQL support
Likewise here, can this privilege be downgraded?