kdb understanding