elimiated extensive SQL error throwing