Changed database schema for attachments.