Fix up the SQL connection queue issues. Now it works a little faster and multiple threads accessing the same database will not cause crashes.
Fix up the SQL connection queue issues. Now it works a little faster and multiple threads accessing the same database will not cause crashes.

pcbsd/sysadm,pcbsd/sysadm,pcbsd/sysadm,pcbsd/sysadm,c3d2/sysadm,c3d2/sysadm,c3d2/sysadm,c3d2/sysadm,pcbsd/sysadm