Check your curly brackets {}
The first fault is missing close bracket on end of loop() so SendtoDB() is part of loop and cannot be found. Your also missing brackets in the SendDB() procedure.
Check your curly brackets {}
The first fault is missing close bracket on end of loop() so SendtoDB() is part of loop and cannot be found. Your also missing brackets in the SendDB() procedure.