added models, fixed migration for 'notes'