added db functoins for hugs
accidentally added same function twice