clean db and exit