Revert "entity table is now into asterisk db"

This reverts commit ebd649c0336cc2b53a508fe28cd88c51d94158c8.