changed print to debug for sql results