Prepare htw db usage