Update: my code works if I put my database file in script file, so not sure why is it not working if I have different file
I have a csv file that I parse at input as