Add more logging information in DataBase queries classes