Finish refactoring notes model

- Update and create fns
- Counting fns
- Move stats up to routes, use count fn from model
- Make sure that we can handle validating a note with empty attributes and respond correctly