Fixed db creating