Fix a display bug in summary - str instead of unicode, and a missing class.
db: migrate to a new database schema

species_regions: filename is replaced by speciescode as a primary_key
habitat_regions: filename is replaced by habitatcode as a primary_key

species_type, habitattype_type are enlarged to 10 chars