DB delete error fixed