Setup db in tests via command instead of calling function.
Add useful filters for notes.