Fixes #14 - code wasn't checking to see if mysql was returning items