Catch nonexisting DB boots

In cases where a database isn't specified as root and that no Id is
passed in, the code would attempt to boot it with a recovery that would
yield an 'undefined' id being stored in.

This patch makes the change explicit, and also makes more assertions
inline (such as when growing new record events), which will detect
conflicts earlier