Remove useless lib, add debug parameter, move crawler waiting time variable
Fix concurrent database access