URLShortner with JSP, jquery, servlets and mysql database