Added permissions management and database initialization when application deploys in the application server