createdb: For migration, copy groups before users.

Signed-off-by: Martin Stone <martin@d7415.co.uk>
(cherry picked from commit cd8582b75eaa1ac74e8cfb34272f22c166bde007)