Query the db for specific data and output to file

The following Perl script can be run to extract a specific subset of data from the gpls718project database that was created earlier using SQL queries.