add model, DAO, factory for db
add model, DAO, factory for db