1. until controller_mapping done
2. made some small changes for fixing device registration in the server database

todo:
the response should say - fail when not successful
as of now it is always successful