sqlite4java: upgrade to v.392

Fix #635
QueryResource: add full-text search of the raw queries

Plus tests.
QueryResource: update X-Count for searchTerm as well
add min to the getQueries call to support pagination
CatalogTest: test query searching