refine the exception info
refine code, use mysql dict cursor.