get database preloading of data working