changes in consumerServlet and fixed up errors in sql