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.
changes: - Add postgres backend - Modified or added table attributes. UpdateDate, ForeignKeys, Booleans - Fix test for sqlite and postgres. Compare json instead the struct.