Database redesign, expiration and vm_allocated