Added 'empty' to for loops to inform user of empty database.
Fixed SearchView handling of empty query, added test suite