made admin database writing threaded.
made db_scoper reference counting