refactor, wrap get_mysql_session and get_psql_session
nodeinfo half done