fixing db delete

Change-Id: I0f223ca37e3256fb42ec4c59bc4bc97f11eb81a5