Js doc comments

sendToDatabase comment below