Database testing

I've added the queries I used to test the database.  To do so, I had to add a few lines to existing files such as routes.php.  The changes shouldn't get in the way of anything as far as I know.