ensure commodities are set correctly

call sqlite close on connection release
fix sqlite crash issue

remove print statmetsø