add trial php with sql query

I setup a basic database and tables on the server.  Since I'm being
super inefficient about this, I'm not actually testing locally.  This
commit is a complete trial of what I think might work...