Add an insert query for files in path + update main window