changed my functions to mysqli versus mysql