tables established;bugs fixed about SQL transactions;