let us more easily debug difficult or intermittent issues that users may not report. Add a cron to report logged errors to appdb admins every night. Implement some basic unit tests for the new error logging code
test_query.php to match the rename of include/db.php. Modify include/incl.php to include query.php instead of db.php