improve SalesServlet and some sqls