adds note table and polymorphic associations