fix data is part of mine database
adding logger