David Hasselhoff gets primary custody