clear_db update for foreign keys REVIEW