functions and triggers now work, still having problems loading in data from file