reading in directory/file info from command line, opening db session