Updated the service calls with SQL