store all chunks of a file in the DB