Including db.php on getJsonData endpoint