fix bus when init database