Fixed bug

I setup the database on the server and ran database.py from the pi. From there, I successfully connected to the database. I  created the table 'sensor' and ran the demo.py. Because we have no lightning at this time, I put some code under the 'elif reason == 0x04' to test the data input. A row was inserted into the table every time "Noise level too high - adjusting" was printed.