How to fix Invalid text representation in PostgreSQL | DevErrors