Added WaitCursor class and used it for a long query. Issue #28.