Database and document getters and setters. Set phouch methods.