installer check for privilege before create the database, refine CI 3.0 migration