Database Abstraction Layer, initial.

Created a Model class that will interface the connection between MongoDB
and the application. Porting the current code to work with the new Model
class is in progress.