Fix scrap DB Func