Database commands implemented.