Added a delete() method for DbObject
Added test case for delete()