The Design and Implementation of a Legal Text Database