M::M::U: Store graph categories in SQL in lowercase

As discussed on IRC, graph categories should be case insensitive.