thread-safe, asynchronous sql backend

The backend should now be completely thred-safe, and now performs all atom stores asynchronously.  This should improve performance on large systems.