Added database preload routine to speed up credential's check.