fix setup database issue