Can anyone please help me fix this issue?
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.