Using the hash of text instead of text itself to address a row in Postgres
I would use an UUID instead of a serial. There is a module for this: https://www.postgresql.org/docs/current/static/uuid-ossp.html