Usage of root user to initialize database and changed to only initialize it when the DB is installed