DB Error: ERROR: invalid input syntax for integer: ""