Update terms service to query db