Working PHP script that extracts sample data
(Be sure to edit current DB settings)