use case and sql schema