Updated The Server Program to work correctly

-Fixed a bug that prevented data from being uploaded into our mysql
server correctly