Recently I saw these black bugs on my tomatoes' leaves. I wonder what bug they are and would they harm my tomatoes, and if they do, how can I get rid of them ?: https://i.stack.imgur.com/YEsnK.jpg https://i.stack.imgur.com/2roAS.jpg
Thank you.
EDIT: Finally, I know the source that produces these flies. It turns out that these flies come from the soil tray nearby that I used to plant curly lettuce.
Yesterday I realized that there are many flies and larvae hiding in the soil, after googling I believe that they are FUNGUS GNATS. https://i.stack.imgur.com/PTH8e.jpg It seems that Ithe soil was overwatered that it attracted the flies.
I used the hydrogen peroxide solution to kill the larvae and used yellow sticky to trap the adults The problem is the adults did fail into the trap, but they still outnumbered and keep increasing in number.
That I'm afraid that the hydrogen peroxide did kill the larvae but it also made the soil wet, and the adults which were not trapped, waiting for the hydrogen peroxide to break then came back breeding in the soil. Please help me to handle the situation, the flies are spreading all over the place :(