Store attachments in DB