1. check for service version for that device type...
2. if not exists, create new service id and insert the apis in to service details table