logic for sending to database changed

no switching any more, it now uses language arrays