Preparing cache db usage