added keyword search
better error reporting when db is not indexed
minor adjustment to search text template