Fix 649 / sortkey and enable page-type regex search

Fixes to #649 for the `SQLStore`

Supported test scenarios:

- Dataset includes page 1 with `[[Title::Sample text with spaces]]`, page 2 with `[[Title::Sample test with spaces]]`
- Queries include `[[Title::~Sample te*]]`, `[[Title::~Sample tes*]]`, `[[Title::~Sample te?t with spaces]]`, `[[Title::~Sample*]] AND [[Title::!~Sample tes*]]`, `[[Title::~Sample tes*]] OR [[Title::~Sample tex*]]`