Validate device exists in database before allowing the writing of time series data.
enable additional unit test.