YN:remove old db operation, use the new function