debug database tool