Vai di MFC e CDaoDatabase e in due secondi hai fatto tutto.