Check to see if file changes then insert into database