add sendTo() for server 
modified addToFile
modified addToDatabase