Manual: use of execute() and fetchone()

I've just fixed the use of execute() and fetchone() in the manual and improved (?) the error message.

Former code resulted in
`
AttributeError: 'NoneType' object has no attribute 'fetchone'
`