Database 2

middle in dao design
Please protect for multithreaded execution.