Implemented inserting result into database
Exit renamer Tk main loop without exiting