Added sql queue