added depend destroys to regulate database data