log imports to db for generating stats later