add progress bat to waiting query
add database