Fix problem in DB table "notes"

Also try to make relationship and make diagram of table relationship
I almost rewrote the whole project

I used bad tutorial for creation hibernate relationship between tables
and that's why I have a lot of problems. It was hard day.
Relationship have not been tested yet.