fixed. #51

attachments to database