Creating new local database crashes Cortex

This should be fixed in build 4467.