adapter db