Hi Ricardopf, not sure what your question is. Both verses are true. Verse 5 is a general observation and characterization by God of the human race. Verse 8 shows that even when all around you, you can still be considered good by God. That is the theme throughout the bible. Regardless your own defects, the people around you etc, you can still try to be different. How? Well, as the rich man and the teacher of the law asked Jesus, and Jesus responded: love you neighbour and follow me (summarized in my own words, see Luke 10:25, Luke 18:18).
Hope this answers your question somehow.