Hi Welcome to Coderanch.
Please make sure to wrap long lines and
UseCodeTags while posting code. It makes posts more readable.
I've added code tags to your post above.
From the posted code, the part that inserts data into database is commented out.
Also it is a bad practice to put in the DB connection and manipulation code in the doxxx() method of the servlet.