Database contract