truncate book and edition attributes to 255 characters for postgres db