new pseudo-api flows.py script
new database creation version. corrected bug on Null notes Total Trade Estimation (to be continued). Now lots of duplicates to correct