added db contract