moved SQL out of MatchServlet