Postgresql Integer Size Javascript Map Function