Can directory traversal attack on web makes sql query stop working

My web’s insert into query stop working after my friend hacked my website with directory traversal,he said he didn’t do anything with my website,he just only saw my backend folder,he can see all my php files inside that folder after that he click one of those files and suddenly my insert query stop working.