Fix db creating