Use the syncing that we've got already to load the search page from the database instead of the server (this isn't really syncing though as it still won't work when the server is offline)
Spent ages tracking this down. Cordova defaults to just not reporting things like syntax errors in the SQL so it was hard to see I'd written the insert statement incorrectly. Now things work (sort of, we've really just acted the way the app always acts except with a database thrown in for the moment)