updated delete and other function as per new db structure

Signed-off-by: Smita Kumari <kumarismita62@gmail.com>