Database 2

middle in dao design