Accounting query is sleeping