added mysql connection info and changed to mysqli