fixed the issues tht happened when postgres re-installation