changed setup db check to mysqli