Fix exporting of attachments in vB 4 if they are stored in database