when disconnecting a battery you should remove the negative cable first and then the positive cable !!! when connecting the battery you should put the positive cable on first then the negative cable !!! reason for this method reduce the chance of arcing !!!, hope this helps !!!
here is a good read !!!
How To Install a Boat Battery - Marine Battery Guy