database preliminary (query and store, no randomization, no inheritance)