Your task to write a single Python function `runPsy()` function, in
file `psy.py`, that reads in a JSON file and updates the database
appropriately. `runPsy()` should take three parameters:
-`conn`: the database connection, already opened and initialized
-`curs`: a *cursor* for the connection.
-`jsonFile`: the JSON file name
Database cursors implement the notion of a *session* with respect to a single
connection. Cursors are used to execute commands and return results, whether
one by one or all at once.
Each line in the input file will consist of a single JSON object in one of the following two formats:
-**New customer**, where information about a customer is provided in the following format
(though our example file has each input in a single line). You can assume that the
frequent flier airline name matches exactly what is there in the 'airlines' table.
```
{ "newcustomer": {
"customerid": "cust1000",
"name": "XYZ",
"birthdate": "1991-12-06",
"frequentflieron": "Spirit Airlines"
}
}
```
-**Flew On**, where information about the passengers in a flight is
provided. Create new rows in `flewon` for each customer, as well as the `customers`
table if the `customerid` does not already exist.
- In some cases the `customerid` provided may not be present in the database (cust1000 as seen below). In this case, first update the `customers` table (all the info is guaranteed to be
there), and then add tuples to the `flewon` table.