fix empty database