Add logging in DataBase class