correction to SQLRepo