Database basic operations.