Attachment provider

To solve following:
- Reduce permissions
- Manage files by database