Postgresql Invalid Input Syntax For Type Int