Database hooks instead of data arrays