Database operations.