refactoring car dao