added database adapter handler