Add virtual function for postgres user per #4967
Only load postgre_database state if postgres installed

per #4967
database, not user
Finish on fix #4967