PostgreSQL Script Changes

Script Changes for ogent PostgreSQL database