Move dao into adapter

Improve access to database.
This reduce the log "Close cursor android.database.sqlite.SQLiteCursor@xxxxxxxxxx on null twice or more"