Added database connectivity

Added first callbacks for connecting to mongoDB