db connection and db CRUD methods.

related: #5  #6