each class now uses own db connection, commits reorganized
separate db connections for method and path in calculate
debug mode prints memory usage
more rational commit timing