fix empty db