Changes to store raw sensor values in database