Switching to database studies.

Should this be the constant? If not, randomly generate it.