Fixed server code crashing due to Segmentation fault
original server code without mysqldb
undid the changes to the latest working code for waspmote