Working MySQL INSERTS for sensors

Next stage is implementing some form of multithreading to fix the now
non-functioning web server. I have added scheduling but this doesn’t
seem to be sufficient.