Beging implementing database adapter