saves the attachment_id into the database