if cursor_factory is not defined, use connection_factory default.

This allows using connection_factory types psycopg2.extras.NamedTupleConnection or DictConnection.

self.db = momoko.Pool(dsn=settings['dsn'], size=settings['db_conn_size'], connection_factory=psycopg2.extras.NamedTupleConnection)