used sqlalchemy session on mining process
sessionmaker