attachment files path write to database
change database structure
make paths.json