Place the beans, sugar, garlic, onion, and bacon into a slow cooker. Pour in the water, cover, and cook on High for 6 hours. Drain off 2/3 of the liquid, and discard bacon. Use a potato masher to mash beans to a chunky consistency. Season with salt to taste, and serve hot.