save log files in file system and reference in db
update tests
a bunch of fixes