Refine the feature for initializing the database