The work around is to remove any lines relating ip dhcp database prior to adding the pool.
When you remove those lines and add the pool first it wont freeze on you.
This is a super annoying issue when restoring a config because those lines are above the pools and I have no idea this cant be fixed.