- fixed file save in db