DB logic is implemented.