Minor fix

1/ Fixed an issue with the search leading to possible crash and database
connection staying open
2/ Removed the .ui file since it's not used