Completed optimizations for updating sensor data in the database. Added some test data.