replaced mysql to mysqli in DB wrapper class