Fix incorrect sql service usage