Fixing Postgresql BIGINT interpretation