Fixed bug in update code for database update that was failing if no dupes were found.
Fixed bug in get search suggestions function.