Fix #19, solve monitor SQL bug

Parameters were passed incorrectly to the cur.execute() calls, must be passed as a tuple, even if there's only one parameter:
`cur.execute(query, (param,))` NOT `cur.execute(query, param)`

Also pulling enchanced debug message reporting in the monitor main loop.
K