   const char* c = dbPath.c_str();
   Serial.println(dbPath);
   int statusCode = client.get(c, &response);
+  if(statusCode == 200)
+    dbSuccess++;
+  else
+    dbFailure++;
+  Serial.print("Successful DB Requests: ");
+  Serial.println(dbSuccess);
+  Serial.print("Failed DB Requests: ");
+  Serial.println(dbFailure);
   Serial.println(statusCode);
-  Serial.println(response);
   
   if(response == "{\"Vacancy\":true}")
     return true;

  dbPath += lotID;
  randIndex = random(1, 100);
  cardID = randomCard(int(randIndex));

  const char* c = dbPath.c_str();
  Serial.print("Checking for authorization of cardID: ");
  Serial.println(cardID);
  Serial.println(dbPath);
  int statusCode = client.post(c, "POSTDATA", &response);
  
  if(response == "{\"authorized\":true}")
    return true;

#include "RestClient.h"   // Library Downloaded from: https://github.com/DaKaZ/esp8266-restclient
#include "cardIDS.h"

#define WiFi_ID       "HEXA"
#define WiFi_Password "hexapassword"

#define SWITCH_PIN    5
#define Green_Led     15
