Adapting base system to support PostgreSQL (install and auth)