Fixed minor issues with PostgreSQL 9.3

replaced int4 with int32