reworking the flow of the file and still working to add to the db