[server] Handle unique constraint violations under recent sqlite
The error message changed from "columns foo, bar, baz are not unique" to
"UNIQUE constraint failed: table.foo, table.bar, table.baz".
Closes #3564510
Experiment with the search bar. Try queries like "card sometextualcontent" or"card wikiid index" or "345".