Make datastore db handle thread local.
Complete some force insert stuff (still to be tested).
Use __invoke_callbacks helper.