'client' was not declared in this scope. Please help!

PaulS:
If we see the WHOLE error message, yes. You get to see the line number where the compiler has issues. You didn't share that.

You do try to use an instance named client in Sending_To_DB(), but I don't see where that instance is created/defined.

I just added WiFiClient client; and the error was gone. Silly mistake! Thanks so much for pointing that out.