added expect for database initializing