Simplify by using inteface appropriately
Remove deprecated codes.
Support third ad and change various module designs.
Add database.go, which supports common basic process to select from
database.
Remove deprecated func.