empty db fixes