Switch data source

This just provides an interface for switching the data library based upon admin options.

I am using this to prepare for the cookie part so it will be the base branch for saving the cookie