Get recent queries page working, tons of cleanup outstanding