database operation using ajax and javascript in jsp and servlet