Updated sql delete queries.