Changed db to EMM db. Fixed the sendError issue
Merge branch 'beta2' of https://github.com/WSO2Mobile/mdm into beta2