cleansing and db preparation