Made DB classes driver independent.