Revert "fix missing grant privileges"

This reverts commit aed65eca4d1f77d12ebb62e53fee7d3f959ae463.
Revert "move entity and user tables to asterisk db"

This reverts commit 508b3940821a9bef9b4ec5c4b7c21e5c2590be80.