solved some problems creating empty db