added connection flags to mysqli initialization