Added note passing to db