Cleanup of adapter interface

made adapter interface more re-usable; examples in idbAdapter.js header
comments;