Added cdb framework for database, modified contact model class to work with database.