This allows e.g. associating database entries for IP leases and accounting directly from the start. Fixes #2853.