I am very new to digital photography and still trying to use my new Nikon D3400.
In trying to analyze your first photo, I copied it to my photo editing program (Corel Paintshop Pro 2018) and "edited" your picture to see if I could improve it.
This process involved improving the light, color, contrast and sharpness. In my opinion, the resulting photo is usable, but less than perfect because of some out of focus conditions.
I am not knowledgeable enough to translate those changes into a definition of what you need to do in your camera to fully fix the problems. Hopefully this will help you, or some of the great UHH folks can interpret my fixes into "Camera" language.