added ResetSession function in DynamicSql
fixed UpdateDB, is now properly called on startup
fixed MT problems with sql sessions