Table creation for category_to_attachment