create revision for each file when upload new text
move image map to database