Also changed the the name field of grants to title, and made the data type text instead of string because they have the same performance in PostgreSQL. See http://stackoverflow.com/a/3354762/2559290