move DAOs to model
use base and insert
count update
find
move to nosetests