change to mysqli, adjust css