ProgressBar added and database creation optimized.