Use clear name for session_factory in sql notes.

Previous use of 'sessionmaker' was confusing.