Updated sendToDatabase

Minor update.
Minor updates to sendSPARQL and sendSPARQL.
minor name changes to ease understanding.
Minor changes in updates to TextAreas.
Minor fix.
Yet another very minor fix.
Minor changes and comments.

Types, predicates and literals are now sorted.