fix db errors in policy module
Merge branch 'rc3' of github.com:WSO2Mobile/mdm into rc3