Fixed bug in Database Object delete method