Fixed delete from database.