Servlet and SQL queries creator