test of the existance of 'db' directory fixed