Updated scripts for Postgresql.