noterelation db fuction finish