at this stage, the server receives a connection, it sends the client a "1", telling it it's ready for connection.
the server then accepts sql information from the client, and appropriately handles it.

the sql database now has three history tables: img_history, light_history, temp_history