Updating and retrieving data from java servlet to sql database