added database adapter