store() adds attachment to db if it does not exist
Attachment doc and tests