Minor changes in dao base.