database preloading added