Replace global database by local handle in AccessTokenStore
Created by: asdine
This changes the database handle used by AccessTokenStore. It currently uses the global dbconn handle, but since it now supports basestore, it can use the local handle instead.