On exit database entry is cleared