fix retract
fix db_retract