seems to help if database is cleaned at exit