Update sql/logs.sql

Added foreign key to sensors table