Develop/view search

* Add DAO and refactor to adapt android architecture.
* Add viewID query feature.