fix initialize database error bug