switch to sessionmaker
debug notmuch
unnecessary multithreading