Local iMac db setup

status at 20151117:
Python script ok. Failing at the MySQL commit as the primary key stuff is not letting the data into the table.
To do: add data to the sensor table. check PKs and FKs. check them again. Look at using python to check for duplicates instead of doing it this way.