full cycle of db