fix db_retractall