Database functioning.