Logging size of files to db