Fixed bug on Engine.connect() which caused by lacking parameter 'charset'.
1. Added logger, all sql execution would be logged at debug level; 2. Added property affected_rows, last_executed to _BaseSession and Engine object.