Revert "change to ConcurrentQueue to access avls/sql function"

This reverts commit 1827fb0cc638a101ccc2af8e4882cfb11faa01bb.