Add additional functions to the repository to add or update devices, sensors or measured values. Furthermore the test has been adapt to the new functions.