- fix bugs
- fixed file save in db