Don't rely on SQLite collate features.

They are not available in older versions, and more importantly,
"nocase" only works on ASCII characters, therefore it won't correctly
handle words like CAFÉ.

As an additional note the lower and upper functions have similar
restrictions so all case conversion needs to be done within Perl.