Fixed double hostname output in create.ap.database.sh