* this fixes some problems with closing db when having none, should have been into...