Change pub_key from string to text for PostgreSQL.