fixed empty dbs directory issue