Use text datatype for title and entry_id

For discussion, see #216.